<?php

namespace Database\Seeders;

use App\Models\User;
use Carbon\Carbon;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
//        $table = \Illuminate\Support\Facades\DB::table('users');
//        $data = [
//            [
//                'id'=>102155,
//                'username'=>'samcen',
//                'password'=>bcrypt('123456'),
//                'phone'=>'15902082831',
//                'status'=>User::STATUS_ENABLE,
//                'nickname'=>'sam',
//                'note'=>'sam',
//                'created_at'=>Carbon::now(),
//                'updated_at'=>Carbon::now(),
//            ]
//        ];
//        $table->truncate();
//        $table->insert($data);
    }
}
